<case value="textarea">
    <textarea class="form-control textarea" rows="5" name="{$[type]form.name}" {$[type]form.extra_attr}>{$[type]form.value}</textarea>
</case>